<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      .box {
        width: 500px;
        height: 500px;
        background-color: pink;
        /* display: flex;
      justify-content: center;
      align-items: center; */
        position: relative;
        /* padding-left: 0;
      padding-top: 0;
      padding-bottom: 0;
      padding-right: 0; */
        /* padding: auto; */
      }
      .box .box1 {
        position: absolute;
        /* top: 50%;
      left: 50%;
      transform: translate(-50%,-50%); */
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        margin: auto;
        width: 200px;
        height: 200px;
        background-color: lawngreen;
      }
    </style>
  </head>
  <body>
    <div class="box">
      <div class="box1"></div>
    </div>
  </body>
</html>
